#ifndef DeviceHandler_h
#define DeviceHandler_h

#include <iostream>
#include <windows.h>
#include "FTD2XX.H"

class DeviceHandler
{
	FT_HANDLE handle_;
	FT_STATUS status_;
	int device_;
public:
	DeviceHandler(int device) : device_(device) {}
	void		open();
	void		close();
	FT_STATUS	get_status();
	FT_HANDLE	get_handle();
	std::string get_details();
	DWORD		write(char *bytes, size_t size);
	DWORD		read(char *bytes, size_t size);
};

#endif // DeviceHandler_h